home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Code Resources / icl8 LDEF 2.0 / Source / icl8 LDEF.h < prev    next >
Text File  |  1995-11-14  |  1KB  |  44 lines

  1. #ifndef ICL8_LDEF_H_
  2. #define ICL8_LDEF_H_
  3.  
  4. /*
  5.     IconListData structure.
  6.     Each cell should (at the minimum) contain this data.
  7. */
  8.  
  9. typedef struct {
  10.     short selType;        // Method of selecting a cell
  11.     short frameWidth;    // Width of frame?
  12.                         // (Used only if kSelectByFramingBW & kSelectbyFramingHilite set)
  13.  
  14.     short id;            // Rsrc id of icon for this cell (icl8)
  15.  
  16.     short iconSize;        // kIcon32Size => Use icl8
  17.                         // kIcon16Size => Use ics8
  18.                         // kIconBasedOnCellSize => icl8 or ics8 depending on cell rect
  19.  
  20.     short drawName;        // Draw icl8's resource name (1=true, 0=false)
  21. } IconListData, *IconListDataPtr, **IconListDataHdl;
  22.  
  23. // ---------------------------------------------------------------------------
  24.  
  25. enum {
  26.     // selType constants
  27.     kSelectByInvertBW,            // Invert area black and white (icon is inverted)
  28.     kSelectByInvertHilite,        // Invert area using hilite color (icon not inverted)
  29.  
  30.     kSelectByFramingBW,            // BW frame
  31.     kSelectbyFramingHilite,        // Frame using hilite color
  32.     kSelectByFramingSpecial,    // Use a custom drawing method implemented by the LDEF
  33.     
  34.     kSelectByDarkenIcon,        // Similar to when an icon is selected in the Finder
  35.  
  36.  
  37.  
  38.     // iconSize constants
  39.     kIcon32Size = 32,
  40.     kIcon16Size = 16,
  41.     kIconBasedOnCellSize = 1000
  42. };
  43.  
  44. #endif // ICL8_LDEF_H_